/* locktestProc1.c
 *	Simple program to test the lock and CV-related syscalls across processes. 
 *This file will create a lock and CV, the other program will try to interact with them. 
 *It should not be allowed to.
 */
 
#include "syscall.h"

int Proc1Lock;
int Proc1CV;

int main(int argc, char **argv)
{   
	/* Must run tests with -d t to see all error output\n");*/

    PrintOut("\nProcess 1: Creating lock and CV for other process to attempt to interact with.\n", 74);
	Proc1Lock = CreateLock(1);
	Proc1CV = CreateCV(1);

    PrintOut("\nProcess 1: Creating new process.\n", 32);
	Exec("../test/locktestProc2", 21);
}

